<<<<<<< HEAD
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { fileURLToPath } from 'url';
import path from 'path';

const _dirname = path.dirname(fileURLToPath(import.meta.url));

=======
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath } from 'url'
import path from 'path'

const _dirname = path.dirname(fileURLToPath(import.meta.url))
// https://vite.dev/config/
>>>>>>> f425cfb0320ced29f9e28f379fa4c77eebf50d68
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
<<<<<<< HEAD
      '@': path.resolve(_dirname, 'src'), // 添加路径别名配置
    },
  },
  server: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, ''),
      }
    }
  }
});
=======
      '@':path.resolve(_dirname,'src')
    }
  }
})
>>>>>>> f425cfb0320ced29f9e28f379fa4c77eebf50d68
